import request from '@/utils/request'

// 获取文章标签信息
export function getTags() {
  return request({
    url: '/blog/tags',
    method: 'get'
  })
}

//获取文章列表
export function getPosts(query){
  return request({
    url: '/blog/pagePosts',
    method: 'get',
    params: query
  })
}